/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package views.JPanel;

import controllers.entity.CanBo;
import controllers.entity.ChamThi;
import controllers.entity.Children;
import controllers.entity.DeTai;
import controllers.entity.GiangDay;
import controllers.entity.GiaoTrinh;
import controllers.entity.Paper;
import controllers.process.CanBoProcess;
import controllers.process.ChamThiProcess;
import controllers.process.ChildrenProcess;
import controllers.process.DeTaiProcess;
import controllers.process.GiangDayProcess;
import controllers.process.GiaoTrinhProcess;
import controllers.process.PaperProcess;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.Date;
import java.util.List;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import models.Constant;
import views.Dialog.DlgThemChamThi;
import views.Dialog.DlgThemChildren;
import views.JPanel.ChucNangCB;

//import views.Dialog.DlgThemGiangDay;

import views.Dialog.DlgThemDeTai;
import views.Dialog.DlgThemGiangDay;

import views.Dialog.DlgThemGiaoTrinh;
import views.Dialog.DlgThemPaper;

/**
 *
 * @author HoaDuyen
 */
public final class TTCanBo extends javax.swing.JFrame {

    /**
     * Creates new form TTCanBo
     */
    private int macanbo;
    private DefaultListModel dlmChamThi;
    private DefaultListModel dlmGiaDinh;
    private DefaultListModel dlmGiangDay;
    private DefaultListModel dlmDeTai;
    private DefaultListModel dlmGiaoTrinh;
    private DefaultListModel dlmPaper;
    private List<ChamThi> listChamThi;
    private List<Children> listGiaDinh;
    private List<GiangDay> listGiangDay;
    private List<GiaoTrinh> listGiaoTrinh;
    private List<Paper> listPaper;
    private List<DeTai> listDeTai;
    private CanBoProcess canBoProcess;
    private ChildrenProcess giaDinhProcess;
    private ChamThiProcess chamThiProcess;
    private GiangDayProcess giangDayProcess;
    private PaperProcess paperProcess;
    private DeTaiProcess deTaiProcess;
    private GiaoTrinhProcess giaoTrinhProcess;
    private JList jlist;
    private ChucNangCB win;
    private JFrame window;
    public TTCanBo(JPanel win,final JFrame window,Integer macanbo) {
        this.win=(ChucNangCB)win;
        this.window=window;
        this.macanbo=macanbo;
        this.setLocation(Constant.LOCATE_XPANEL, Constant.LOCATE_YPANEL);
        canBoProcess=new CanBoProcess();
        chamThiProcess=new ChamThiProcess();
        giaDinhProcess=new ChildrenProcess();
        deTaiProcess=new DeTaiProcess();
        paperProcess=new PaperProcess();
        giangDayProcess=new GiangDayProcess();
        giaoTrinhProcess=new GiaoTrinhProcess();
        dlmChamThi = new DefaultListModel();
        dlmGiaDinh=new DefaultListModel();
        dlmPaper = new DefaultListModel();
        dlmDeTai=new DefaultListModel();
        dlmGiaoTrinh = new DefaultListModel();
        dlmGiangDay=new DefaultListModel();
        this.setResizable(false);
        initComponents(); 
        loadThongTinCaNhan();
        loadListChamThi();
        loadListGiaDinh();
        loadListGiangDay();
        loadListGiaoTrinh();
        loadListPaper();
        loadListDeTai();
        this.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                window.setEnabled(true);
            }  
        
        });
    }
    public void loadThongTinCaNhan(){
         List<CanBo> canbo=canBoProcess.getAllBookByCateID();
        for (CanBo c: canbo)
        if (c.getMaCanBo()==macanbo){
            hoten.setText(c.getHoTen());
            hoten.setToolTipText(c.getHoTen());
            date.setDate(c.getNgaySinh());
            date.setToolTipText(""+c.getNgaySinh());
            sdt.setText(c.getSoDienThoai());
            sdt.setToolTipText(c.getSoDienThoai());
            email.setText(c.getEmail());
            email.setToolTipText(c.getEmail());
            chucdanh.setText(c.getChucDanh());
            chucdanh.setToolTipText(c.getChucDanh());
            chucvu.setText(c.getChucVu());
            chucvu.setToolTipText(c.getChucVu());
            khoavien.setText(c.getKhoaVien());
            khoavien.setToolTipText(c.getKhoaVien());
            diachi.setText(c.getDiaChi());
            diachi.setToolTipText(c.getDiaChi());
            dangvien.setSelected(c.getDangVien());
            if (c.getDangVien()==true){
                dangvien.setToolTipText("Có");
            }
            else
                dangvien.setToolTipText("Không");
                
            doanvien.setSelected(c.getDoanVien());
            if (c.getDoanVien()==true){
                doanvien.setToolTipText("Có");
            }
            else
                doanvien.setToolTipText("Không");
            congdoanvien.setSelected(c.getCongDoanVien());
            if (c.getCongDoanVien()==true){
                congdoanvien.setToolTipText("Có");
            }
            else
                congdoanvien.setToolTipText("Không");
            hesoluong.setText(""+c.getHeSoLuong());
            hesoluong.setToolTipText(c.getHeSoLuong()+"");
            masothue.setText(""+c.getMaSoThue());
            masothue.setToolTipText(c.getMaSoThue()+"");
            sotaikhoan.setText(""+c.getSoTaiKhoan());
            sotaikhoan.setToolTipText(c.getSoTaiKhoan());
            phucapchucvu.setText(""+c.getPhuCapChucVu());
            phucapchucvu.setToolTipText(c.getPhuCapChucVu()+"");
            phucapgiangday.setText(""+c.getPhuCapGiangDay());
            phucapgiangday.setToolTipText(c.getPhuCapGiangDay()+"");
            thanhtich.setText(c.getThanhTich());
            thanhtich.setToolTipText(c.getThanhTich());
        }
    }
    public void loadListChamThi(){
        listChamThi=chamThiProcess.getAllChamThi(macanbo);
        dlmChamThi.removeAllElements();
        for (ChamThi chamthi:listChamThi){
             dlmChamThi.addElement(chamthi.getMaLopHoc());
        }
        if (listChamThi.size() > 0) {
                             lstChamThi.setSelectedIndex(0);
        }
    }
    public void loadListGiaDinh(){
        listGiaDinh=giaDinhProcess.getlAllChildren(macanbo);
        dlmGiaDinh.removeAllElements();
        for (Children children:listGiaDinh){
             dlmGiaDinh.addElement(children.getHoTen());
        }
        if (listGiaDinh.size() > 0) {
                             lstGiaDinh.setSelectedIndex(0);
        }
    }
    public void loadListGiangDay(){
        listGiangDay=giangDayProcess.getAllGiangDay(macanbo);
        dlmGiangDay.removeAllElements();
        for (GiangDay giangday:listGiangDay){
             dlmGiangDay.addElement(giangday.getMaLopHoc());
        }
        if (listGiangDay.size() > 0) {
                             lstGiangDay.setSelectedIndex(0);
        }
    }
    public void loadListGiaoTrinh(){
        listGiaoTrinh=giaoTrinhProcess.getAllGiaoTrinh(macanbo);
        dlmGiaoTrinh.removeAllElements();
        for (GiaoTrinh giangday:listGiaoTrinh){
             dlmGiaoTrinh.addElement(giangday.getTenGiaoTrinh());
        }
        if (listGiaoTrinh.size() > 0) {
                             lstGiaoTrinh.setSelectedIndex(0);
        }
    }
    public void loadListPaper(){
        listPaper=paperProcess.getAllPaper(macanbo);
        dlmPaper.removeAllElements();
        for (Paper giangday:listPaper){
             dlmPaper.addElement(giangday.getTenBaiBao());
        }
        if (listPaper.size() > 0) {
                             lstPaper.setSelectedIndex(0);
        }
    } 
    public void loadListDeTai(){
        listDeTai=deTaiProcess.getlAllDeTai(macanbo);
        dlmDeTai.removeAllElements();
        for (DeTai giangday:listDeTai){
             dlmDeTai.addElement(giangday.getTenDeTai());
        }
        if (listDeTai.size() > 0) {
                             lstDeTai.setSelectedIndex(0);
        }
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        hoten = new javax.swing.JTextField();
        gioitinh = new javax.swing.JComboBox();
        jLabel52 = new javax.swing.JLabel();
        khoavien = new javax.swing.JTextField();
        date = new com.toedter.calendar.JDateChooser();
        diachi = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        sdt = new javax.swing.JTextField();
        jPanel10 = new javax.swing.JPanel();
        Email = new javax.swing.JLabel();
        email = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        chucdanh = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        chucvu = new javax.swing.JTextField();
        jLabel67 = new javax.swing.JLabel();
        dangvien = new javax.swing.JCheckBox();
        jLabel68 = new javax.swing.JLabel();
        doanvien = new javax.swing.JCheckBox();
        jLabel69 = new javax.swing.JLabel();
        congdoanvien = new javax.swing.JCheckBox();
        jLabel55 = new javax.swing.JLabel();
        chinhsuacanhan = new javax.swing.JButton();
        save = new javax.swing.JButton();
        jPanel38 = new javax.swing.JPanel();
        jLabel71 = new javax.swing.JLabel();
        jLabel76 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jLabel89 = new javax.swing.JLabel();
        masothue = new javax.swing.JTextField();
        sotaikhoan = new javax.swing.JTextField();
        phucapchucvu = new javax.swing.JTextField();
        phucapgiangday = new javax.swing.JTextField();
        hesoluong = new javax.swing.JTextField();
        jLabel70 = new javax.swing.JLabel();
        thanhtich = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        malopGD = new javax.swing.JTextField();
        tenmonhoc = new javax.swing.JTextField();
        sotinchi = new javax.swing.JTextField();
        mamon = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        namhoc = new javax.swing.JTextField();
        hocky = new javax.swing.JTextField();
        sosinhvien = new javax.swing.JTextField();
        jPanel27 = new javax.swing.JPanel();
        themgiangday = new javax.swing.JButton();
        chinhsuagiangday = new javax.swing.JButton();
        xoagiangday = new javax.swing.JButton();
        jLabel77 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        lstGiangDay = new javax.swing.JList();
        jPanel7 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        malop = new javax.swing.JTextField();
        mamonhoc = new javax.swing.JTextField();
        jPanel15 = new javax.swing.JPanel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        sobaithi = new javax.swing.JTextField();
        ngaynop = new com.toedter.calendar.JDateChooser();
        jLabel24 = new javax.swing.JLabel();
        jPanel28 = new javax.swing.JPanel();
        jButton10 = new javax.swing.JButton();
        themChamThi = new javax.swing.JButton();
        xoachamthi = new javax.swing.JButton();
        jLabel75 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        lstChamThi = new javax.swing.JList();
        jPanel8 = new javax.swing.JPanel();
        jPanel23 = new javax.swing.JPanel();
        jLabel50 = new javax.swing.JLabel();
        jLabel51 = new javax.swing.JLabel();
        tentacgia = new javax.swing.JTextField();
        tengiaotrinh = new javax.swing.JTextField();
        magiaotrinh = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        jPanel24 = new javax.swing.JPanel();
        jLabel56 = new javax.swing.JLabel();
        jLabel57 = new javax.swing.JLabel();
        namxuatban = new javax.swing.JTextField();
        nhaxuatban = new javax.swing.JTextField();
        jPanel29 = new javax.swing.JPanel();
        chinhsuagiaotrinh = new javax.swing.JButton();
        xoagiaotrinh = new javax.swing.JButton();
        themgiaotrinh = new javax.swing.JButton();
        jLabel74 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        lstGiaoTrinh = new javax.swing.JList();
        jPanel20 = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        lstGiaDinh = new javax.swing.JList();
        jLabel82 = new javax.swing.JLabel();
        jPanel35 = new javax.swing.JPanel();
        jLabel83 = new javax.swing.JLabel();
        jLabel84 = new javax.swing.JLabel();
        jLabel85 = new javax.swing.JLabel();
        tencon = new javax.swing.JTextField();
        thanhtichcon = new javax.swing.JTextField();
        ngaysinhcon = new com.toedter.calendar.JDateChooser();
        jLabel86 = new javax.swing.JLabel();
        goitinhcon = new javax.swing.JTextField();
        jPanel36 = new javax.swing.JPanel();
        themcon2 = new javax.swing.JButton();
        chinhsuacon2 = new javax.swing.JButton();
        bxoagiadinh = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        madetai = new javax.swing.JTextField();
        tendetai = new javax.swing.JTextField();
        kinhphi = new javax.swing.JTextField();
        cap = new javax.swing.JTextField();
        jPanel19 = new javax.swing.JPanel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        thoigianbatdau = new javax.swing.JTextField();
        thoigianketthuc = new javax.swing.JTextField();
        chutridetai = new javax.swing.JTextField();
        tinhtrang = new javax.swing.JTextField();
        ketqua = new javax.swing.JTextField();
        jPanel26 = new javax.swing.JPanel();
        themdetai = new javax.swing.JButton();
        chinhsuadetai = new javax.swing.JButton();
        xoadetai = new javax.swing.JButton();
        jLabel72 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        lstDeTai = new javax.swing.JList();
        jPanel4 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        tentapchi = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        so = new javax.swing.JTextField();
        chisoissn = new javax.swing.JTextField();
        hesoif = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        ngayxuatban = new javax.swing.JTextField();
        tenbaibao = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jPanel25 = new javax.swing.JPanel();
        thempaper = new javax.swing.JButton();
        chinhsuapaper = new javax.swing.JButton();
        xoapaper = new javax.swing.JButton();
        jLabel73 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        lstPaper = new javax.swing.JList();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Thông Tin Cán Bộ");

        jPanel2.setBackground(new java.awt.Color(102, 204, 255));

        jPanel9.setBackground(new java.awt.Color(102, 204, 255));

        jLabel1.setText("Họ và tên:");

        jLabel3.setText("Ngày sinh");

        jLabel4.setText("Giới Tính");

        hoten.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        hoten.setForeground(new java.awt.Color(255, 0, 0));
        hoten.setToolTipText("");
        hoten.setEnabled(false);
        hoten.setMaximumSize(new java.awt.Dimension(6, 20));
        hoten.setName(""); // NOI18N

        gioitinh.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nam", "Nữ" }));
        gioitinh.setEnabled(false);
        gioitinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gioitinhActionPerformed(evt);
            }
        });

        jLabel52.setText("Khoa Viện");

        khoavien.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        khoavien.setEnabled(false);
        khoavien.setMaximumSize(new java.awt.Dimension(6, 20));

        date.setEnabled(false);
        date.setFocusCycleRoot(true);
        date.setMaximumSize(new java.awt.Dimension(6, 20));
        date.setMinimumSize(new java.awt.Dimension(6, 20));
        date.setPreferredSize(new java.awt.Dimension(6, 20));

        diachi.setEnabled(false);
        diachi.setMaximumSize(new java.awt.Dimension(6, 20));

        jLabel11.setText("Địa Chỉ");

        jLabel12.setText("SĐT");

        sdt.setEnabled(false);
        sdt.setMaximumSize(new java.awt.Dimension(6, 20));

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                    .addComponent(jLabel52, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(diachi, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
                    .addComponent(khoavien, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(gioitinh, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(hoten, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(date, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(sdt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(41, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(hoten, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(date, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel52)
                    .addComponent(khoavien, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(gioitinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(diachi, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11))
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(sdt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addContainerGap(60, Short.MAX_VALUE))
        );

        jPanel10.setBackground(new java.awt.Color(102, 204, 255));

        Email.setText("Email");

        email.setEnabled(false);

        jLabel6.setText("Chức vụ");

        chucdanh.setEnabled(false);
        chucdanh.setName(""); // NOI18N

        jLabel5.setText("Chức danh:");

        chucvu.setEnabled(false);

        jLabel67.setText("Đảng Viên");

        dangvien.setEnabled(false);

        jLabel68.setText("Đoàn Viên");

        doanvien.setEnabled(false);

        jLabel69.setText("Công Đoàn Viên");

        congdoanvien.setEnabled(false);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel69))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel10Layout.createSequentialGroup()
                                        .addComponent(jLabel67, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGroup(jPanel10Layout.createSequentialGroup()
                                        .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addGap(66, 66, 66)))
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(doanvien)
                                    .addComponent(dangvien)
                                    .addComponent(chucvu, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(congdoanvien)))
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(chucdanh, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addComponent(Email)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(25, 25, 25))))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Email)
                    .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(chucdanh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chucvu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel67, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dangvien))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(doanvien))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(congdoanvien))
                .addContainerGap(76, Short.MAX_VALUE))
        );

        jLabel55.setForeground(new java.awt.Color(255, 0, 51));
        jLabel55.setText("*");

        chinhsuacanhan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuacanhan.setText("Chỉnh Sửa");
        chinhsuacanhan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuacanhanActionPerformed(evt);
            }
        });

        save.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_save.png"))); // NOI18N
        save.setText("Lưu");
        save.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveActionPerformed(evt);
            }
        });

        jPanel38.setBackground(new java.awt.Color(102, 204, 255));

        jLabel71.setText("Mã Số Thuế");

        jLabel76.setText("Số Tài Khoản");

        jLabel88.setText("Phụ Cấp Chức Vụ");

        jLabel89.setText("Phụ Cấp Giảng Dạy");

        masothue.setEnabled(false);

        sotaikhoan.setEnabled(false);

        phucapchucvu.setEnabled(false);

        phucapgiangday.setEnabled(false);

        hesoluong.setEnabled(false);

        jLabel70.setText("Hệ Số Lương");

        thanhtich.setEnabled(false);

        jLabel8.setText("Thành Tích");

        javax.swing.GroupLayout jPanel38Layout = new javax.swing.GroupLayout(jPanel38);
        jPanel38.setLayout(jPanel38Layout);
        jPanel38Layout.setHorizontalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel89)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel38Layout.createSequentialGroup()
                            .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel76, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel71, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel88, javax.swing.GroupLayout.Alignment.LEADING))
                            .addGap(25, 25, 25)))
                    .addComponent(jLabel70)
                    .addComponent(jLabel8))
                .addGap(18, 18, 18)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(phucapchucvu, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                    .addComponent(sotaikhoan)
                    .addComponent(thanhtich)
                    .addComponent(masothue)
                    .addComponent(hesoluong)
                    .addComponent(phucapgiangday))
                .addContainerGap(40, Short.MAX_VALUE))
        );
        jPanel38Layout.setVerticalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel71)
                    .addComponent(masothue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel76)
                    .addComponent(sotaikhoan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel88)
                    .addComponent(phucapchucvu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(phucapgiangday, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel89))
                .addGap(11, 11, 11)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel70)
                    .addComponent(hesoluong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(thanhtich, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(43, 43, 43)
                        .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(326, 326, 326)
                        .addComponent(chinhsuacanhan)
                        .addGap(33, 33, 33)
                        .addComponent(save, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(37, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(157, 157, 157)
                    .addComponent(jLabel55)
                    .addContainerGap(822, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jPanel38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chinhsuacanhan)
                    .addComponent(save))
                .addGap(31, 31, 31))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap(423, Short.MAX_VALUE)
                    .addComponent(jLabel55)
                    .addGap(29, 29, 29)))
        );

        jTabbedPane1.addTab("Thông Tin Cá Nhân", jPanel2);

        jPanel6.setBackground(new java.awt.Color(102, 204, 255));

        jPanel16.setBackground(new java.awt.Color(102, 204, 255));

        jLabel26.setText("Mã lớp");

        jLabel27.setText("Tên môn học");

        jLabel28.setText("Số tín chỉ");

        malopGD.setEnabled(false);

        tenmonhoc.setEnabled(false);

        sotinchi.setEnabled(false);

        mamon.setEnabled(false);

        jLabel29.setText("Mã môn học");

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel27)
                    .addComponent(jLabel26)
                    .addComponent(jLabel28)
                    .addComponent(jLabel29))
                .addGap(18, 18, 18)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(malopGD, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                    .addComponent(tenmonhoc)
                    .addComponent(sotinchi)
                    .addComponent(mamon))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(malopGD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel27)
                    .addComponent(tenmonhoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(sotinchi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(mamon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel17.setBackground(new java.awt.Color(102, 204, 255));

        jLabel30.setText("Số sinh viên");

        jLabel31.setText("Học kỳ");

        jLabel32.setText("Năm học");

        namhoc.setEnabled(false);

        hocky.setEnabled(false);

        sosinhvien.setEnabled(false);
        sosinhvien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sosinhvienActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel30)
                    .addComponent(jLabel32)
                    .addComponent(jLabel31))
                .addGap(33, 33, 33)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(sosinhvien, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)
                    .addComponent(hocky)
                    .addComponent(namhoc))
                .addContainerGap(34, Short.MAX_VALUE))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(sosinhvien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(hocky, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32)
                    .addComponent(namhoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        jPanel27.setBackground(new java.awt.Color(102, 204, 255));

        themgiangday.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_add.png"))); // NOI18N
        themgiangday.setText("Thêm");
        themgiangday.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themgiangdayActionPerformed(evt);
            }
        });

        chinhsuagiangday.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuagiangday.setText("Chỉnh sửa");
        chinhsuagiangday.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuagiangdayActionPerformed(evt);
            }
        });

        xoagiangday.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        xoagiangday.setText("Xóa");
        xoagiangday.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoagiangdayActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27);
        jPanel27.setLayout(jPanel27Layout);
        jPanel27Layout.setHorizontalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel27Layout.createSequentialGroup()
                .addContainerGap(76, Short.MAX_VALUE)
                .addComponent(themgiangday)
                .addGap(18, 18, 18)
                .addComponent(chinhsuagiangday)
                .addGap(18, 18, 18)
                .addComponent(xoagiangday)
                .addGap(73, 73, 73))
        );
        jPanel27Layout.setVerticalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel27Layout.createSequentialGroup()
                .addGap(0, 14, Short.MAX_VALUE)
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(themgiangday)
                    .addComponent(chinhsuagiangday)
                    .addComponent(xoagiangday)))
        );

        jLabel77.setText("Danh Sách");

        lstGiangDay.setModel(dlmGiangDay);
        lstGiangDay.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                giangday(evt);
            }
        });
        jScrollPane1.setViewportView(lstGiangDay);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel77)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(69, 69, 69)
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(49, 49, 49)
                        .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(226, 226, 226)
                        .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(208, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(33, 33, 33)
                        .addComponent(jLabel77)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 175, Short.MAX_VALUE)
                .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(64, 64, 64))
        );

        jTabbedPane1.addTab("Giảng dạy", jPanel6);

        jPanel7.setBackground(new java.awt.Color(102, 204, 255));

        jPanel14.setBackground(new java.awt.Color(102, 204, 255));

        jLabel19.setText("Mã Lớp");

        jLabel21.setText("Mã Môn Học");

        malop.setEnabled(false);

        mamonhoc.setEnabled(false);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(mamonhoc, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)
                    .addComponent(malop))
                .addContainerGap())
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(malop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(mamonhoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jPanel15.setBackground(new java.awt.Color(102, 204, 255));

        jLabel22.setText("Ngày Nộp");

        jLabel23.setText("Số Bài Thi");

        sobaithi.setEnabled(false);

        ngaynop.setEnabled(false);

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel22)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(ngaynop, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE)
                    .addComponent(sobaithi)))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel22)
                    .addComponent(ngaynop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(sobaithi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel24.setText("Thông Tin Chấm Thi");

        jPanel28.setBackground(new java.awt.Color(102, 204, 255));

        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        jButton10.setText("Chỉnh sửa");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        themChamThi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_add.png"))); // NOI18N
        themChamThi.setText("Thêm");
        themChamThi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themChamThiActionPerformed(evt);
            }
        });

        xoachamthi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        xoachamthi.setText("Xóa");
        xoachamthi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoachamthiActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup()
                .addComponent(themChamThi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(xoachamthi)
                .addContainerGap(114, Short.MAX_VALUE))
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup()
                .addGap(0, 14, Short.MAX_VALUE)
                .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton10)
                    .addComponent(themChamThi)
                    .addComponent(xoachamthi)))
        );

        jLabel75.setText("Danh Sách");

        lstChamThi.setModel(dlmChamThi);
        lstChamThi.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                lstChamThiVoid(evt);
            }
        });
        jScrollPane5.setViewportView(lstChamThi);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(230, 230, 230)
                        .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(282, 282, 282)
                        .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(91, 91, 91)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel75)
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(86, 86, 86)
                                .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(56, 56, 56)
                                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel24)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel75)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(71, 71, 71)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 232, Short.MAX_VALUE)
                        .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(26, 26, 26))
        );

        jTabbedPane1.addTab("Chấm thi", jPanel7);

        jPanel8.setBackground(new java.awt.Color(102, 204, 255));

        jPanel23.setBackground(new java.awt.Color(102, 204, 255));

        jLabel50.setText("Tên tác giả");

        jLabel51.setText("Tên giáo trình");

        tentacgia.setEnabled(false);

        tengiaotrinh.setEnabled(false);

        magiaotrinh.setEnabled(false);

        jLabel53.setText("Mã Giáo Trình");

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel50)
                    .addComponent(jLabel51)
                    .addComponent(jLabel53))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(tentacgia, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)
                    .addComponent(tengiaotrinh)
                    .addComponent(magiaotrinh))
                .addGap(18, 18, 18))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel50)
                    .addComponent(tentacgia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel51)
                    .addComponent(tengiaotrinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel53)
                    .addComponent(magiaotrinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        jPanel24.setBackground(new java.awt.Color(102, 204, 255));

        jLabel56.setText("Năm xuất bản");

        jLabel57.setText("Nhà xuất bản");

        namxuatban.setEnabled(false);

        nhaxuatban.setEnabled(false);

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel56)
                    .addComponent(jLabel57))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(namxuatban, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
                    .addComponent(nhaxuatban))
                .addGap(18, 18, 18))
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(namxuatban, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel56))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(nhaxuatban, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel57))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jPanel29.setBackground(new java.awt.Color(102, 204, 255));

        chinhsuagiaotrinh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuagiaotrinh.setText("Chỉnh sửa");
        chinhsuagiaotrinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuagiaotrinhActionPerformed(evt);
            }
        });

        xoagiaotrinh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        xoagiaotrinh.setText("Xóa");
        xoagiaotrinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoagiaotrinhActionPerformed(evt);
            }
        });

        themgiaotrinh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_add.png"))); // NOI18N
        themgiaotrinh.setText("Thêm");
        themgiaotrinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themgiaotrinhActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(themgiaotrinh)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(chinhsuagiaotrinh)
                .addGap(8, 8, 8)
                .addComponent(xoagiaotrinh)
                .addGap(103, 103, 103))
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel29Layout.createSequentialGroup()
                .addGap(0, 21, Short.MAX_VALUE)
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chinhsuagiaotrinh)
                    .addComponent(themgiaotrinh)
                    .addComponent(xoagiaotrinh)))
        );

        jLabel74.setText("Danh Sách");

        lstGiaoTrinh.setModel(dlmGiaoTrinh);
        lstGiaoTrinh.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                giaotrinhvalue(evt);
            }
        });
        jScrollPane3.setViewportView(lstGiaoTrinh);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(99, 99, 99)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel74)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(81, 81, 81)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(65, 65, 65)
                        .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(151, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(69, 69, 69)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 169, Short.MAX_VALUE)
                .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(66, 66, 66))
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addComponent(jLabel74)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Giáo trình", jPanel8);

        jPanel20.setBackground(new java.awt.Color(102, 204, 255));

        lstGiaDinh.setModel(dlmGiaDinh);
        lstGiaDinh.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                valueChangeGiaDinh(evt);
            }
        });
        jScrollPane8.setViewportView(lstGiaDinh);

        jLabel82.setText("Danh Sách");

        jPanel35.setBackground(new java.awt.Color(102, 204, 255));

        jLabel83.setText("Họ tên");

        jLabel84.setText("Ngày sinh");

        jLabel85.setText("Thành tích");

        tencon.setEnabled(false);

        thanhtichcon.setEnabled(false);

        ngaysinhcon.setEnabled(false);

        jLabel86.setText("Giới tính");

        goitinhcon.setEnabled(false);

        javax.swing.GroupLayout jPanel35Layout = new javax.swing.GroupLayout(jPanel35);
        jPanel35.setLayout(jPanel35Layout);
        jPanel35Layout.setHorizontalGroup(
            jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel35Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel84)
                    .addComponent(jLabel83)
                    .addComponent(jLabel85)
                    .addComponent(jLabel86))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(tencon)
                    .addComponent(ngaysinhcon, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                    .addComponent(thanhtichcon)
                    .addComponent(goitinhcon))
                .addGap(59, 59, 59))
        );
        jPanel35Layout.setVerticalGroup(
            jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel35Layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel83)
                    .addComponent(tencon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel84)
                    .addComponent(ngaysinhcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel85)
                    .addComponent(thanhtichcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel86)
                    .addComponent(goitinhcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(43, Short.MAX_VALUE))
        );

        jPanel36.setBackground(new java.awt.Color(102, 204, 255));

        themcon2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/addemp.png"))); // NOI18N
        themcon2.setText("Thêm");
        themcon2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themcon2ActionPerformed(evt);
            }
        });

        chinhsuacon2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuacon2.setText("Chỉnh sửa");
        chinhsuacon2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuacon2ActionPerformed(evt);
            }
        });

        bxoagiadinh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        bxoagiadinh.setText("Xóa");
        bxoagiadinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bxoagiadinhActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel36Layout = new javax.swing.GroupLayout(jPanel36);
        jPanel36.setLayout(jPanel36Layout);
        jPanel36Layout.setHorizontalGroup(
            jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel36Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(themcon2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(chinhsuacon2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(bxoagiadinh)
                .addGap(99, 99, 99))
        );
        jPanel36Layout.setVerticalGroup(
            jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel36Layout.createSequentialGroup()
                .addGap(0, 14, Short.MAX_VALUE)
                .addGroup(jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(themcon2)
                    .addComponent(chinhsuacon2)
                    .addComponent(bxoagiadinh)))
        );

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGap(80, 80, 80)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel82))
                        .addGap(129, 129, 129)
                        .addComponent(jPanel35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGap(285, 285, 285)
                        .addComponent(jPanel36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(324, Short.MAX_VALUE))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel82)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 142, Short.MAX_VALUE)
                .addComponent(jPanel36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39))
        );

        jTabbedPane1.addTab("Thông Tin Gia Đình", jPanel20);

        jPanel5.setBackground(new java.awt.Color(102, 204, 255));

        jPanel18.setBackground(new java.awt.Color(102, 204, 255));

        jLabel33.setText("Mã đề tài");

        jLabel34.setText("Tên đề tài");

        jLabel35.setText("Cấp");

        jLabel36.setText("Kinh phí");

        madetai.setEnabled(false);

        tendetai.setEnabled(false);

        kinhphi.setEnabled(false);

        cap.setEnabled(false);

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel34)
                        .addComponent(jLabel33))
                    .addComponent(jLabel35)
                    .addComponent(jLabel36))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(madetai, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)
                    .addComponent(tendetai)
                    .addComponent(cap)
                    .addComponent(kinhphi)))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(madetai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel34)
                    .addComponent(tendetai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(cap, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(kinhphi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        jPanel19.setBackground(new java.awt.Color(102, 204, 255));

        jLabel37.setText("Thời gian bắt đầu");

        jLabel38.setText("Thời gian kết thúc");

        jLabel39.setText("Chủ trì đề tài");

        jLabel40.setText("Tình trạng");

        jLabel41.setText("Kết quả");

        thoigianbatdau.setEnabled(false);

        thoigianketthuc.setEnabled(false);

        chutridetai.setEnabled(false);

        tinhtrang.setEnabled(false);

        ketqua.setEnabled(false);

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel40)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel37)
                            .addComponent(jLabel41)
                            .addComponent(jLabel39)
                            .addComponent(jLabel38))
                        .addGap(38, 38, 38)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ketqua, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(thoigianketthuc, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
                                .addComponent(thoigianbatdau)
                                .addComponent(chutridetai)
                                .addComponent(tinhtrang)))))
                .addContainerGap())
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(thoigianbatdau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(thoigianketthuc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel38))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel39)
                    .addComponent(chutridetai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(tinhtrang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(ketqua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel26.setBackground(new java.awt.Color(102, 204, 255));

        themdetai.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_add.png"))); // NOI18N
        themdetai.setText("Thêm");
        themdetai.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themdetaiActionPerformed(evt);
            }
        });

        chinhsuadetai.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuadetai.setText("Chỉnh sửa");
        chinhsuadetai.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuadetaiActionPerformed(evt);
            }
        });

        xoadetai.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        xoadetai.setText("Xóa");
        xoadetai.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoadetaiActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(themdetai)
                .addGap(18, 18, 18)
                .addComponent(chinhsuadetai)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(xoadetai)
                .addContainerGap(85, Short.MAX_VALUE))
        );
        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addGap(0, 14, Short.MAX_VALUE)
                .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(themdetai)
                    .addComponent(chinhsuadetai)
                    .addComponent(xoadetai)))
        );

        jLabel72.setText("Danh Sách");

        lstDeTai.setModel(dlmDeTai);
        lstDeTai.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                DetaiNCKH(evt);
            }
        });
        jScrollPane6.setViewportView(lstDeTai);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47)
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel72))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(175, 175, 175))
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(203, 203, 203)
                .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(412, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGap(32, 32, 32)
                                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 144, Short.MAX_VALUE)
                        .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(51, 51, 51))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel72)
                        .addGap(1, 1, 1)
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );

        jTabbedPane1.addTab("TT Nghiên cứ KH", jPanel5);

        jPanel4.setBackground(new java.awt.Color(102, 204, 255));

        jPanel13.setBackground(new java.awt.Color(102, 204, 255));

        jLabel14.setText("Tên tạp chí");

        tentapchi.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        tentapchi.setEnabled(false);

        jLabel15.setText("Số");

        jLabel16.setText("Chi số ISSN");

        jLabel17.setText("Hệ số IF");

        so.setEnabled(false);

        chisoissn.setEnabled(false);

        hesoif.setEnabled(false);

        jLabel18.setText("Năm xuất bản");

        ngayxuatban.setEnabled(false);

        tenbaibao.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        tenbaibao.setEnabled(false);

        jLabel25.setText("Tên bài báo");

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE))
                        .addGap(27, 27, 27)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tentapchi)
                            .addComponent(chisoissn)))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(tenbaibao, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(41, 41, 41)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel17)
                    .addComponent(jLabel18)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ngayxuatban, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(so, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(hesoif, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(50, 50, 50))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel25)
                        .addComponent(tenbaibao)
                        .addComponent(jLabel15))
                    .addComponent(so, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ngayxuatban, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18)
                    .addComponent(jLabel14)
                    .addComponent(tentapchi))
                .addGap(18, 18, 18)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel16)
                        .addComponent(chisoissn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel17))
                    .addComponent(hesoif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24))
        );

        jPanel25.setBackground(new java.awt.Color(102, 204, 255));

        thempaper.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_add.png"))); // NOI18N
        thempaper.setText("Thêm");
        thempaper.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                thempaperActionPerformed(evt);
            }
        });

        chinhsuapaper.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
        chinhsuapaper.setText("Chỉnh sửa");
        chinhsuapaper.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chinhsuapaperActionPerformed(evt);
            }
        });

        xoapaper.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/btn_delete.png"))); // NOI18N
        xoapaper.setText("Xóa");
        xoapaper.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoapaperActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(thempaper)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(chinhsuapaper)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(xoapaper)
                .addContainerGap(117, Short.MAX_VALUE))
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel25Layout.createSequentialGroup()
                .addGap(0, 14, Short.MAX_VALUE)
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(thempaper)
                    .addComponent(chinhsuapaper)
                    .addComponent(xoapaper)))
        );

        jLabel73.setText("Danh Sách");

        lstPaper.setModel(dlmPaper);
        lstPaper.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                paperValue(evt);
            }
        });
        jScrollPane4.setViewportView(lstPaper);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel73)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(82, 82, 82)
                        .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(263, 263, 263)
                .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 328, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addContainerGap(44, Short.MAX_VALUE)
                        .addComponent(jLabel73)
                        .addGap(35, 35, 35)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(76, 76, 76)
                        .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
                .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(52, 52, 52))
        );

        jTabbedPane1.addTab("Bài báo khoa học", jPanel4);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void gioitinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gioitinhActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_gioitinhActionPerformed

    private void chinhsuapaperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuapaperActionPerformed
        if (lstPaper.getSelectedIndex() > -1) {
            new DlgThemPaper(this, true, macanbo,listPaper.get(lstPaper.getSelectedIndex())).setVisible(true);
           
        }
    }//GEN-LAST:event_chinhsuapaperActionPerformed

    private void lstChamThiVoid(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_lstChamThiVoid
        if (lstChamThi.getSelectedIndex() > -1) {
            malop.setText(listChamThi.get(lstChamThi.getSelectedIndex()).getMaLopHoc());
            mamonhoc.setText(listChamThi.get(lstChamThi.getSelectedIndex()).getMaMonHoc());
            ngaynop.setDate(listChamThi.get(lstChamThi.getSelectedIndex()).getNgayNop());
            sobaithi.setText(""+listChamThi.get(lstChamThi.getSelectedIndex()).getSoBaiThi());
        }
    }//GEN-LAST:event_lstChamThiVoid

    private void themChamThiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themChamThiActionPerformed
       new DlgThemChamThi(this,true, macanbo,null).setVisible(true);
    }//GEN-LAST:event_themChamThiActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
       //chinh sua
        if (lstChamThi.getSelectedIndex() > -1) {
            new DlgThemChamThi(this, true, macanbo,listChamThi.get(lstChamThi.getSelectedIndex())).setVisible(true);
        }
    }//GEN-LAST:event_jButton10ActionPerformed

    private void giangday(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_giangday
         if (lstGiangDay.getSelectedIndex() > -1) {
            malopGD.setText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getMaLopHoc());
            tenmonhoc.setText(listGiangDay.get(lstGiangDay.getSelectedIndex()).getTenMonHoc());
            sotinchi.setText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getSoTinChi());
            sosinhvien.setText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getSoSinhVien());
            hocky.setText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getHocKy());
            namhoc.setText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getYear());
            mamon.setText(listGiangDay.get(lstGiangDay.getSelectedIndex()).getMaMonHoc());
            
            malopGD.setToolTipText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getMaLopHoc());
            tenmonhoc.setToolTipText(listGiangDay.get(lstGiangDay.getSelectedIndex()).getTenMonHoc());
            sotinchi.setToolTipText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getSoTinChi());
            sosinhvien.setToolTipText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getSoSinhVien());
            hocky.setToolTipText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getHocKy());
            namhoc.setToolTipText(""+listGiangDay.get(lstGiangDay.getSelectedIndex()).getYear());
            mamon.setToolTipText(listGiangDay.get(lstGiangDay.getSelectedIndex()).getMaMonHoc());
         }
    }//GEN-LAST:event_giangday

    private void giaotrinhvalue(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_giaotrinhvalue
       if (lstGiaoTrinh.getSelectedIndex() > -1) {
            tentacgia.setText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getTenTacGia());
            tentacgia.setToolTipText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getTenTacGia());
            tengiaotrinh.setText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getTenGiaoTrinh());
            namxuatban.setText(""+listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getYear());
            nhaxuatban.setText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getNhaXuatBan());
            magiaotrinh.setText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getMaGiaoTrinh());
            tengiaotrinh.setToolTipText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getTenGiaoTrinh());
            namxuatban.setToolTipText(""+listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getYear());
            nhaxuatban.setToolTipText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getNhaXuatBan());
            magiaotrinh.setToolTipText(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getMaGiaoTrinh());
            
        }
    }//GEN-LAST:event_giaotrinhvalue

    private void DetaiNCKH(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_DetaiNCKH
        if (lstDeTai.getSelectedIndex() > -1) {
            madetai.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getMaDeTai());
            tendetai.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getTenDeTai());
            cap.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getCap());
            kinhphi.setText(""+listDeTai.get(lstDeTai.getSelectedIndex()).getKinhPhi());
            thoigianbatdau.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getStart());
            thoigianketthuc.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getFinish());
            chutridetai.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getChuDeTai());
            tinhtrang.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getTinhTrang());
            ketqua.setText(listDeTai.get(lstDeTai.getSelectedIndex()).getKetQua());
             
            madetai.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getMaDeTai());
            tendetai.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getTenDeTai());
            cap.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getCap());
            kinhphi.setToolTipText(""+listDeTai.get(lstDeTai.getSelectedIndex()).getKinhPhi());
            thoigianbatdau.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getStart());
            thoigianketthuc.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getFinish());
            chutridetai.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getChuDeTai());
            tinhtrang.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getTinhTrang());
            ketqua.setToolTipText(listDeTai.get(lstDeTai.getSelectedIndex()).getKetQua());
        }
    }//GEN-LAST:event_DetaiNCKH

    private void paperValue(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_paperValue
       if (lstPaper.getSelectedIndex() > -1) {
            tentapchi.setText(listPaper.get(lstPaper.getSelectedIndex()).getTenTapChi());
            hesoif.setText(""+listPaper.get(lstPaper.getSelectedIndex()).getIF());
            chisoissn.setText(""+listPaper.get(lstPaper.getSelectedIndex()).getISSN());
            so.setText(""+listPaper.get(lstPaper.getSelectedIndex()).getSo());
            ngayxuatban.setText(listPaper.get(lstPaper.getSelectedIndex()).getThoiGian());
            tenbaibao.setText(listPaper.get(lstPaper.getSelectedIndex()).getTenBaiBao());
            
            tentapchi.setToolTipText(listPaper.get(lstPaper.getSelectedIndex()).getTenTapChi());
            hesoif.setToolTipText(""+listPaper.get(lstPaper.getSelectedIndex()).getIF());
            chisoissn.setToolTipText(""+listPaper.get(lstPaper.getSelectedIndex()).getISSN());
            so.setToolTipText(""+listPaper.get(lstPaper.getSelectedIndex()).getSo());
            ngayxuatban.setToolTipText(listPaper.get(lstPaper.getSelectedIndex()).getThoiGian());
            tenbaibao.setToolTipText(listPaper.get(lstPaper.getSelectedIndex()).getTenBaiBao());
       }
    }//GEN-LAST:event_paperValue

    private void sosinhvienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sosinhvienActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_sosinhvienActionPerformed

    private void themgiaotrinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themgiaotrinhActionPerformed
        new DlgThemGiaoTrinh(this,true, macanbo,null).setVisible(true);
    }//GEN-LAST:event_themgiaotrinhActionPerformed

    private void chinhsuagiaotrinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuagiaotrinhActionPerformed
        if (lstGiaoTrinh.getSelectedIndex() > -1) {
            new DlgThemGiaoTrinh(this, true, macanbo,listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex())).setVisible(true);
        }
    }//GEN-LAST:event_chinhsuagiaotrinhActionPerformed

    private void chinhsuagiangdayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuagiangdayActionPerformed
       if (lstGiangDay.getSelectedIndex() > -1) {
            new DlgThemGiangDay(this, true, macanbo,listGiangDay.get(lstGiangDay.getSelectedIndex())).setVisible(true);
        }
    }//GEN-LAST:event_chinhsuagiangdayActionPerformed

    private void themgiangdayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themgiangdayActionPerformed
          new DlgThemGiangDay(this,true, macanbo,null).setVisible(true);
    }//GEN-LAST:event_themgiangdayActionPerformed

    private void chinhsuadetaiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuadetaiActionPerformed
       if (lstDeTai.getSelectedIndex() > -1) {
            new DlgThemDeTai(this, true, macanbo,listDeTai.get(lstDeTai.getSelectedIndex())).setVisible(true);
        }
    }//GEN-LAST:event_chinhsuadetaiActionPerformed

    private void themdetaiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themdetaiActionPerformed
         new DlgThemDeTai(this,true, macanbo,null).setVisible(true);
    }//GEN-LAST:event_themdetaiActionPerformed

    private void thempaperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_thempaperActionPerformed
        new DlgThemPaper(this,true, macanbo,null).setVisible(true);
    }//GEN-LAST:event_thempaperActionPerformed

    private void xoagiangdayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoagiangdayActionPerformed
       if (lstGiangDay.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa Giang Day", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            giangDayProcess.deleteGiangDayByMaLopHoc(listGiangDay.get(lstGiangDay.getSelectedIndex()).getMaLopHoc());
            malopGD.setText("");
            tenmonhoc.setText("");
            sotinchi.setText("");
            sosinhvien.setText("");
            hocky.setText("");
            namhoc.setText("");
            loadListGiangDay();
        }
        }
    }//GEN-LAST:event_xoagiangdayActionPerformed

    private void xoachamthiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoachamthiActionPerformed
        if (lstChamThi.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa Cham Thi", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            chamThiProcess.deleteChamThiByMaLopHoc(listChamThi.get(lstChamThi.getSelectedIndex()).getMaLopHoc());
            malop.setText("");
            mamonhoc.setText("");
            ngaynop.setDate(null);
            sobaithi.setText("");
            loadListChamThi();
        }
        }
    }//GEN-LAST:event_xoachamthiActionPerformed

    private void xoagiaotrinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoagiaotrinhActionPerformed
       if (lstGiaoTrinh.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa Giao Trinh", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            giaoTrinhProcess.deleteGiaoTrinhByMaGiaoTrinh(listGiaoTrinh.get(lstGiaoTrinh.getSelectedIndex()).getMaGiaoTrinh());
            tentacgia.setText("");
            tengiaotrinh.setText("");
            magiaotrinh.setText("");
            namxuatban.setText("");
            nhaxuatban.setText("");
            loadListGiaoTrinh();
        }
        }
    }//GEN-LAST:event_xoagiaotrinhActionPerformed

    private void xoadetaiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoadetaiActionPerformed
        if (lstDeTai.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa De Tai", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            deTaiProcess.deleteDeTaiByMaDeTai(listDeTai.get(lstDeTai.getSelectedIndex()).getMaDeTai());
            madetai.setText("");
            tendetai.setText("");
            cap.setText("");
            kinhphi.setText("");
            thoigianbatdau.setText("");
            thoigianketthuc.setText("");
            chutridetai.setText("");
            tinhtrang.setText("");
            ketqua.setText("");
            loadListDeTai();
        }
        }
    }//GEN-LAST:event_xoadetaiActionPerformed

    private void xoapaperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoapaperActionPerformed
        // TODO add your handling code here:
        if (lstPaper.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa De Tai", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            paperProcess.deletePaperByMaPaper(listPaper.get(lstPaper.getSelectedIndex()).getMaPaper());
            tenbaibao.setText("");
            tentapchi.setText("");
            chisoissn.setText("");
            hesoif.setText("");
            ngayxuatban.setText("");
            loadListPaper();
            }
        }
    }//GEN-LAST:event_xoapaperActionPerformed

    private void chinhsuacanhanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuacanhanActionPerformed
        hoten.setEnabled(true);
        date.setEnabled(true);
        khoavien.setEnabled(true);
        gioitinh.setEnabled(true);
        diachi.setEnabled(true);
        sdt.setEnabled(true);
        email.setEnabled(true);
        chucdanh.setEnabled(true);
        chucvu.setEnabled(true);
        thanhtich.setEnabled(true);
        dangvien.setEnabled(true);
        doanvien.setEnabled(true);
        congdoanvien.setEnabled(true);
        hesoluong.setEnabled(true);
        masothue.setEnabled(true);
        sotaikhoan.setEnabled(true);
        phucapchucvu.setEnabled(true);
        phucapgiangday.setEnabled(true);
    }//GEN-LAST:event_chinhsuacanhanActionPerformed
    private boolean isPhoneNumber(String s){
       if ((!s.startsWith("0"))&&(!s.startsWith("+84"))) return false;
       if (s.startsWith("0")&& s.length()   > 12) return false;
       if (s.startsWith("+84")&& s.length() > 14) return false;
       for (int i = 1 ; i< s.length() ; i++)
           if (s.charAt(i) < '0' || s.charAt(i) > '9'){
               
               System.out.println("" + s.charAt(i));
               return false;
               
           }
        return true;
    }
    private boolean isEmail(String s){
        
        if (s.indexOf('@')==0 || s.indexOf('@')==s.length()-1) return false;
        if (s.indexOf('@', s.indexOf('@')+1)!=-1) return false;
        for (int i=0;i<s.length();i++){
            if (s.charAt(i)==' ')
                return false;
        }
        int i=0;
        int k=0;
        for (int j=0;j<s.length();j++){
            if (s.charAt(j)=='@')
                i++;
            if (s.charAt(j)=='.') 
                k++;
        }
        if (i==0|| i>1 ||k==0) return false;
        if (s.charAt(s.length()-1)=='.') return false;
        return true;
    }
    private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed
        if (hoten.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            hoten.selectAll();
            hoten.requestFocus();
            return;
        }
        if (khoavien.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            khoavien.selectAll();
            khoavien.requestFocus();
            return;
        }
         if (chucvu.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            chucvu.selectAll();
            chucvu.requestFocus();
            return;
        }
          if (chucdanh.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            chucdanh.selectAll();
            chucdanh.requestFocus();
            return;
        }
           if (masothue.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            masothue.selectAll();
            masothue.requestFocus();
            return;
        }
        if (sotaikhoan.getText().length()>29){
            JOptionPane.showMessageDialog(this,"Kích thước không hợp lệ !");
            sotaikhoan.selectAll();
            sotaikhoan.requestFocus();
            return;
        }
        Date  txtDate=date.getDate();
        if (txtDate == null) {
            JOptionPane.showMessageDialog(this,"Không được bỏ trống ngày sinh !");
            return;
        }
        java.util.Date today = new java.util.Date();
        if (today.getTime() - date.getDate().getTime() < 0){
            JOptionPane.showMessageDialog(this, "Lỗi ! Ngày sinh sau ngày hôm nay !");
            return;
        }
        if ((today.getTime() - date.getDate().getTime())/31536000 >80*1000){
            JOptionPane.showMessageDialog(this, "Lỗi ! Tuổi không hợp lý (>80 tuổi) !");
            return;
        }
        if ((today.getTime() - date.getDate().getTime())/31536000 <18*1000){
            JOptionPane.showMessageDialog(this, "Lỗi ! Tuổi không hợp lý (<18 tuổi) !");
            return;
        }
                
        String txtHoTen=hoten.getText();
        String txtEmail=email.getText();
        if (!txtEmail.equals(""))
        if (!isEmail(txtEmail)){
            JOptionPane.showMessageDialog(this,"Không đúng định dạng Email !");
            email.selectAll();
            email.requestFocus();
            return;
        }
        String txtKhoaVien=khoavien.getText();
        String tdiachi=diachi.getText();
        String tchucdanh=chucdanh.getText();
        String tsdt=sdt.getText();
        if (!tsdt.equals(""))
        if (!isPhoneNumber(tsdt)){
            JOptionPane.showMessageDialog(this,"Không đúng định dạng số điện thoại !");
            sdt.selectAll();
            sdt.requestFocus();
            return;
        }
        float tphucapcv = 0;
        if (!phucapchucvu.getText().equals(""))
        try {
                    tphucapcv = Float.parseFloat(phucapchucvu.getText());
        } catch (Exception e1) {
                    JOptionPane.showMessageDialog(this, "Phải nhập số thực vào phụ cập chức vụ !");
                    phucapchucvu.selectAll();
                    phucapchucvu.requestFocus();
                    return;
        }
        float tphucapdd = 0;
        if (!phucapgiangday.getText().equals(""))
        try {
                    tphucapdd = Float.parseFloat(phucapgiangday.getText());
        } catch (Exception e1) {
                    JOptionPane.showMessageDialog(this, "Phải nhập số thực vào phụ cấp giảng dạy !");
                    phucapgiangday.selectAll();
                    phucapgiangday.requestFocus();
                    return;
        }
        float thesoluong = 0;
        if (!hesoluong.getText().equals(""))
        try {
                    thesoluong=Float.parseFloat(hesoluong.getText());
        } catch (Exception e1) {
                    JOptionPane.showMessageDialog(this, "Phải nhập số thực vào hệ số lương !");
                    hesoluong.selectAll();
                    hesoluong.requestFocus();
                    return;
        }
        String tchucvu=chucvu.getText();
        String tgioitinh=gioitinh.getSelectedItem().toString();
        System.out.println(tgioitinh);
        boolean tdangvien=dangvien.getModel().isSelected();
        boolean tdoanvien=doanvien.getModel().isSelected();
        boolean tcongdoanvien=congdoanvien.getModel().isSelected();
        String tmasothue=masothue.getText();
        String tsotaikhoan=sotaikhoan.getText();
        String tthanhtich=thanhtich.getText();
        CanBo canbo=new CanBo(macanbo, txtHoTen,txtDate, 
                tgioitinh, tchucdanh,tchucvu, thesoluong,tphucapcv,tphucapdd,
                tmasothue,tsotaikhoan,tdiachi,tsdt,txtEmail,tdangvien,tdoanvien,tcongdoanvien,tthanhtich, "", txtKhoaVien);
        
         if (canBoProcess.updateCanBo(canbo, macanbo)) {
                    JOptionPane.showMessageDialog(this, "Sửa thành công !");
                } else {
                    JOptionPane.showMessageDialog(this, "Lỗi !");
                }
                
        hoten.setEnabled(false);
        date.setEnabled(false);
        khoavien.setEnabled(false);
        gioitinh.setEnabled(false);
        diachi.setEnabled(false);
        sdt.setEnabled(false);
        email.setEnabled(false);
        chucdanh.setEnabled(false);
        chucvu.setEnabled(false);
        thanhtich.setEnabled(false);
        dangvien.setEnabled(false);
        doanvien.setEnabled(false);
        congdoanvien.setEnabled(false);
        hesoluong.setEnabled(false);
        masothue.setEnabled(false);
        sotaikhoan.setEnabled(false);
        phucapchucvu.setEnabled(false);
        phucapgiangday.setEnabled(false);
        win.loadTableDataThongKeNhanVien();
    }//GEN-LAST:event_saveActionPerformed
    public boolean kiemtrasothuc(String s){
       int dem=0;
       if (s.charAt(s.length()-1)=='.') return false;
       for (int i=0;i<s.length();i++){
           if (s.charAt(i)=='.') dem++;
           if (dem>1) return false;
       }
        
       for (int i = 0 ; i< s.length() ; i++)
          if ((s.charAt(i)!='.')&&(s.charAt(i) < '0' || s.charAt(i) > '9')){       
               System.out.println("hoa" + s.charAt(i));
               return false;
               
           }
        return true;

    }
    private void valueChangeGiaDinh(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_valueChangeGiaDinh
        if (lstGiaDinh.getSelectedIndex() > -1) {
            tencon.setText(listGiaDinh.get(lstGiaDinh.getSelectedIndex()).getHoTen());
            ngaysinhcon.setDate(listGiaDinh.get(lstGiaDinh.getSelectedIndex()).getNgaySinh());
            thanhtichcon.setText(listGiaDinh.get(lstGiaDinh.getSelectedIndex()).getThanhTich());
            goitinhcon.setText(listGiaDinh.get(lstGiaDinh.getSelectedIndex()).getGoiTinh());
            
        }
    }//GEN-LAST:event_valueChangeGiaDinh

    private void themcon2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themcon2ActionPerformed
         new DlgThemChildren(this, true,macanbo,null).setVisible(true);
    }//GEN-LAST:event_themcon2ActionPerformed

    private void chinhsuacon2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chinhsuacon2ActionPerformed

        if (lstGiaDinh.getSelectedIndex() > -1) {
            new DlgThemChildren(this, true, macanbo,listGiaDinh.get(lstGiaDinh.getSelectedIndex())).setVisible(true);
           
        }
    }//GEN-LAST:event_chinhsuacon2ActionPerformed

    private void bxoagiadinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bxoagiadinhActionPerformed
        if (lstGiaDinh.getSelectedIndex() > -1) {
            if (JOptionPane.showConfirmDialog(this, "Bạn chắc chắn muốn xóa ?",
                "Xoa Con", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            giaDinhProcess.deleteChildrenByMaConCai(listGiaDinh.get(lstGiaDinh.getSelectedIndex()).getMaConCai());
            tencon.setText("");
            ngaysinhcon.setDate(null);
            thanhtichcon.setText("");
            goitinhcon.setText("");
            loadListGiaDinh();
        }
        }
    }//GEN-LAST:event_bxoagiadinhActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Email;
    private javax.swing.JButton bxoagiadinh;
    private javax.swing.JTextField cap;
    private javax.swing.JButton chinhsuacanhan;
    private javax.swing.JButton chinhsuacon2;
    private javax.swing.JButton chinhsuadetai;
    private javax.swing.JButton chinhsuagiangday;
    private javax.swing.JButton chinhsuagiaotrinh;
    private javax.swing.JButton chinhsuapaper;
    private javax.swing.JTextField chisoissn;
    private javax.swing.JTextField chucdanh;
    private javax.swing.JTextField chucvu;
    private javax.swing.JTextField chutridetai;
    private javax.swing.JCheckBox congdoanvien;
    private javax.swing.JCheckBox dangvien;
    private com.toedter.calendar.JDateChooser date;
    private javax.swing.JTextField diachi;
    private javax.swing.JCheckBox doanvien;
    private javax.swing.JTextField email;
    private javax.swing.JComboBox gioitinh;
    private javax.swing.JTextField goitinhcon;
    private javax.swing.JTextField hesoif;
    private javax.swing.JTextField hesoluong;
    private javax.swing.JTextField hocky;
    private javax.swing.JTextField hoten;
    private javax.swing.JButton jButton10;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel35;
    private javax.swing.JPanel jPanel36;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField ketqua;
    private javax.swing.JTextField khoavien;
    private javax.swing.JTextField kinhphi;
    private javax.swing.JList lstChamThi;
    private javax.swing.JList lstDeTai;
    private javax.swing.JList lstGiaDinh;
    private javax.swing.JList lstGiangDay;
    private javax.swing.JList lstGiaoTrinh;
    private javax.swing.JList lstPaper;
    private javax.swing.JTextField madetai;
    private javax.swing.JTextField magiaotrinh;
    private javax.swing.JTextField malop;
    private javax.swing.JTextField malopGD;
    private javax.swing.JTextField mamon;
    private javax.swing.JTextField mamonhoc;
    private javax.swing.JTextField masothue;
    private javax.swing.JTextField namhoc;
    private javax.swing.JTextField namxuatban;
    private com.toedter.calendar.JDateChooser ngaynop;
    private com.toedter.calendar.JDateChooser ngaysinhcon;
    private javax.swing.JTextField ngayxuatban;
    private javax.swing.JTextField nhaxuatban;
    private javax.swing.JTextField phucapchucvu;
    private javax.swing.JTextField phucapgiangday;
    private javax.swing.JButton save;
    private javax.swing.JTextField sdt;
    private javax.swing.JTextField so;
    private javax.swing.JTextField sobaithi;
    private javax.swing.JTextField sosinhvien;
    private javax.swing.JTextField sotaikhoan;
    private javax.swing.JTextField sotinchi;
    private javax.swing.JTextField tenbaibao;
    private javax.swing.JTextField tencon;
    private javax.swing.JTextField tendetai;
    private javax.swing.JTextField tengiaotrinh;
    private javax.swing.JTextField tenmonhoc;
    private javax.swing.JTextField tentacgia;
    private javax.swing.JTextField tentapchi;
    private javax.swing.JTextField thanhtich;
    private javax.swing.JTextField thanhtichcon;
    private javax.swing.JButton themChamThi;
    private javax.swing.JButton themcon2;
    private javax.swing.JButton themdetai;
    private javax.swing.JButton themgiangday;
    private javax.swing.JButton themgiaotrinh;
    private javax.swing.JButton thempaper;
    private javax.swing.JTextField thoigianbatdau;
    private javax.swing.JTextField thoigianketthuc;
    private javax.swing.JTextField tinhtrang;
    private javax.swing.JButton xoachamthi;
    private javax.swing.JButton xoadetai;
    private javax.swing.JButton xoagiangday;
    private javax.swing.JButton xoagiaotrinh;
    private javax.swing.JButton xoapaper;
    // End of variables declaration//GEN-END:variables

}
